import request from '@/utils/request'
import { getToken } from '@/utils/auth'

export function queryList(query) {
  return request({
    url: '/wxh-cloud-rest/rest/' + getToken() + '/pas/mallOrderItem/list',
    method: 'get',
    params: query
  })
}

export function queryListDetail(query) {
  return request({
    url: '/wxh-cloud-rest/rest/' + getToken() + '/pas/mallOrderItem/orderDetailList',
    method: 'get',
    params: query
  })
}

export function queryMallOrder(query) {
  return request({
    url: '/wxh-cloud-rest/rest/' + getToken() + '/pas/mallOrder/queryMallOrderById',
    method: 'get',
    params: query
  })
}
